package com.kaili.basic.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.kaili.basic.mapper.WmsReceivableHandleDetailMapper;
import com.kaili.basic.pojo.dto.WmsReceivableHandleDetailQueryDTO;
import com.kaili.basic.pojo.entity.WmsReceivableHandleDetailEntity;
import com.kaili.basic.pojo.vo.BaseMoveStoreDetailVO;
import com.kaili.basic.pojo.vo.WmsReceivableHandleDetailVO;
import com.kaili.basic.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

@Service
@Transactional
public class FinanceBookKeepingServiceImpl extends ServiceImpl<WmsReceivableHandleDetailMapper, WmsReceivableHandleDetailEntity> implements FinanceBookKeepingService {

    @Autowired
    private WmsReceivableHandleDetailMapper wmsReceivableHandleDetailMapper;

    @Override
    public Long queryStoreOrderNo() {
        return wmsReceivableHandleDetailMapper.queryStoreOrderNo();
    }

    @Override
    public Page<WmsReceivableHandleDetailVO> queryPageList(Page<WmsReceivableHandleDetailVO> page, WmsReceivableHandleDetailQueryDTO queryDto) {
        List<WmsReceivableHandleDetailVO> list=wmsReceivableHandleDetailMapper.queryPageList(page,queryDto);
        page.setRecords(list);
        return page;
    }

    @Override
    public List<WmsReceivableHandleDetailVO> queryPageList(WmsReceivableHandleDetailQueryDTO queryDto) {
        return wmsReceivableHandleDetailMapper.queryPageList(queryDto);
    }
}
